.class public Lcom/adview/AdViewLayout;
.super Landroid/widget/RelativeLayout;
.source "AdViewLayout.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/adview/AdViewLayout$GetConfigRunnable;,
        Lcom/adview/AdViewLayout$HandleAdRunnable;,
        Lcom/adview/AdViewLayout$InitRunnable;,
        Lcom/adview/AdViewLayout$PingKyAdviewRunnable;,
        Lcom/adview/AdViewLayout$PingUrlRunnable;,
        Lcom/adview/AdViewLayout$RotateAdRunnable;,
        Lcom/adview/AdViewLayout$RotatePriAdRunnable;,
        Lcom/adview/AdViewLayout$ViewAdRunnable;
    }
.end annotation


# instance fields
.field public activeRation:Lcom/adview/obj/Ration;

.field public final activityReference:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field public adViewInterface:Lcom/adview/AdViewInterface;

.field public adViewManager:Lcom/adview/AdViewManager;

.field public baiduView:Landroid/widget/RelativeLayout;

.field public channel:Ljava/lang/String;

.field public extra:Lcom/adview/obj/Extra;

.field public final handler:Landroid/os/Handler;

.field private hasWindow:Z

.field private isScheduled:Z

.field private keyAdView:Ljava/lang/String;

.field public keyDev:Ljava/lang/String;

.field private mDefaultChannel:[Ljava/lang/String;

.field private maxHeight:I

.field private maxWidth:I

.field public netType:Ljava/lang/String;

.field public nextRation:Lcom/adview/obj/Ration;

.field public osVer:Ljava/lang/String;

.field public platform:Ljava/lang/String;

.field public resolution:Ljava/lang/String;

.field public final scheduler:Ljava/util/concurrent/ScheduledExecutorService;

.field public servicePro:Ljava/lang/String;

.field public superViewReference:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference",
            "<",
            "Landroid/widget/RelativeLayout;",
            ">;"
        }
    .end annotation
.end field

.field public typeDev:Ljava/lang/String;

.field public umengView:Landroid/widget/RelativeLayout;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Ljava/lang/String;)V
    .locals 6
    .parameter "context"
    .parameter "keyAdView"

    .prologue
    const/4 v2, 0x0

    const/4 v3, 0x1

    const/4 v5, 0x0

    .line 126
    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    .line 64
    new-instance v0, Ljava/lang/String;

    const-string v1, "000000000000000"

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->keyDev:Ljava/lang/String;

    .line 65
    new-instance v0, Ljava/lang/String;

    const-string v1, "SDK"

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->typeDev:Ljava/lang/String;

    .line 66
    new-instance v0, Ljava/lang/String;

    const-string v1, "2.1-update1"

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->osVer:Ljava/lang/String;

    .line 67
    new-instance v0, Ljava/lang/String;

    const-string v1, "320*480"

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->resolution:Ljava/lang/String;

    .line 68
    new-instance v0, Ljava/lang/String;

    const-string v1, "46000"

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->servicePro:Ljava/lang/String;

    .line 69
    new-instance v0, Ljava/lang/String;

    const-string v1, "2G/3G"

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->netType:Ljava/lang/String;

    .line 70
    new-instance v0, Ljava/lang/String;

    const-string v1, "unknown"

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->channel:Ljava/lang/String;

    .line 71
    new-instance v0, Ljava/lang/String;

    const-string v1, "android"

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->platform:Ljava/lang/String;

    .line 75
    iput-object v2, p0, Lcom/adview/AdViewLayout;->umengView:Landroid/widget/RelativeLayout;

    .line 77
    iput-object v2, p0, Lcom/adview/AdViewLayout;->baiduView:Landroid/widget/RelativeLayout;

    .line 91
    const/16 v0, 0x1a

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "EOE"

    aput-object v1, v0, v5

    .line 92
    const-string v1, "GOOGLEMARKET"

    aput-object v1, v0, v3

    const/4 v1, 0x2

    .line 93
    const-string v2, "APPCHINA"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    .line 94
    const-string v2, "HIAPK"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    .line 95
    const-string v2, "GFAN"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    .line 96
    const-string v2, "GOAPK"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    .line 97
    const-string v2, "NDUOA"

    aput-object v2, v0, v1

    const/4 v1, 0x7

    .line 98
    const-string v2, "91Store"

    aput-object v2, v0, v1

    const/16 v1, 0x8

    .line 99
    const-string v2, "LIQUCN"

    aput-object v2, v0, v1

    const/16 v1, 0x9

    .line 100
    const-string v2, "WAPTW"

    aput-object v2, v0, v1

    const/16 v1, 0xa

    .line 101
    const-string v2, "ANDROIDCN"

    aput-object v2, v0, v1

    const/16 v1, 0xb

    .line 102
    const-string v2, "GGDWON"

    aput-object v2, v0, v1

    const/16 v1, 0xc

    .line 103
    const-string v2, "ANDROIDAI"

    aput-object v2, v0, v1

    const/16 v1, 0xd

    .line 104
    const-string v2, "STARANDROID"

    aput-object v2, v0, v1

    const/16 v1, 0xe

    .line 105
    const-string v2, "ANDROIDD"

    aput-object v2, v0, v1

    const/16 v1, 0xf

    .line 106
    const-string v2, "YINGYONGSO"

    aput-object v2, v0, v1

    const/16 v1, 0x10

    .line 107
    const-string v2, "IMOBILE"

    aput-object v2, v0, v1

    const/16 v1, 0x11

    .line 108
    const-string v2, "SOUAPP"

    aput-object v2, v0, v1

    const/16 v1, 0x12

    .line 109
    const-string v2, "MUMAYI"

    aput-object v2, v0, v1

    const/16 v1, 0x13

    .line 110
    const-string v2, "MOBIOMNI"

    aput-object v2, v0, v1

    const/16 v1, 0x14

    .line 111
    const-string v2, "PAOJIAO"

    aput-object v2, v0, v1

    const/16 v1, 0x15

    .line 112
    const-string v2, "AIBALA"

    aput-object v2, v0, v1

    const/16 v1, 0x16

    .line 113
    const-string v2, "COOLAPK"

    aput-object v2, v0, v1

    const/16 v1, 0x17

    .line 114
    const-string v2, "ANFONE"

    aput-object v2, v0, v1

    const/16 v1, 0x18

    .line 115
    const-string v2, "APKOK"

    aput-object v2, v0, v1

    const/16 v1, 0x19

    .line 116
    const-string v2, "OTHER"

    aput-object v2, v0, v1

    iput-object v0, p0, Lcom/adview/AdViewLayout;->mDefaultChannel:[Ljava/lang/String;

    .line 127
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->activityReference:Ljava/lang/ref/WeakReference;

    .line 128
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->superViewReference:Ljava/lang/ref/WeakReference;

    .line 130
    iput-object p2, p0, Lcom/adview/AdViewLayout;->keyAdView:Ljava/lang/String;

    .line 132
    iput-boolean v3, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    .line 134
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/adview/AdViewLayout;->handler:Landroid/os/Handler;

    .line 136
    invoke-static {v3}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(I)Ljava/util/concurrent/ScheduledExecutorService;

    move-result-object v0

    iput-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    .line 137
    iput-boolean v3, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    .line 138
    iget-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lcom/adview/AdViewLayout$InitRunnable;

    invoke-direct {v1, p0, p2}, Lcom/adview/AdViewLayout$InitRunnable;-><init>(Lcom/adview/AdViewLayout;Ljava/lang/String;)V

    const-wide/16 v2, 0x0

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 140
    invoke-virtual {p0, v5}, Lcom/adview/AdViewLayout;->setHorizontalScrollBarEnabled(Z)V

    .line 141
    invoke-virtual {p0, v5}, Lcom/adview/AdViewLayout;->setVerticalScrollBarEnabled(Z)V

    .line 142
    invoke-direct {p0, p1}, Lcom/adview/AdViewLayout;->getAppInfo(Landroid/content/Context;)V

    .line 144
    iput v5, p0, Lcom/adview/AdViewLayout;->maxWidth:I

    .line 145
    iput v5, p0, Lcom/adview/AdViewLayout;->maxHeight:I

    .line 146
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 9
    .parameter "context"
    .parameter "attrs"

    .prologue
    const/4 v5, 0x0

    const/4 v6, 0x1

    const/4 v8, 0x0

    .line 149
    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 64
    new-instance v3, Ljava/lang/String;

    const-string v4, "000000000000000"

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->keyDev:Ljava/lang/String;

    .line 65
    new-instance v3, Ljava/lang/String;

    const-string v4, "SDK"

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->typeDev:Ljava/lang/String;

    .line 66
    new-instance v3, Ljava/lang/String;

    const-string v4, "2.1-update1"

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->osVer:Ljava/lang/String;

    .line 67
    new-instance v3, Ljava/lang/String;

    const-string v4, "320*480"

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->resolution:Ljava/lang/String;

    .line 68
    new-instance v3, Ljava/lang/String;

    const-string v4, "46000"

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->servicePro:Ljava/lang/String;

    .line 69
    new-instance v3, Ljava/lang/String;

    const-string v4, "2G/3G"

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->netType:Ljava/lang/String;

    .line 70
    new-instance v3, Ljava/lang/String;

    const-string v4, "unknown"

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->channel:Ljava/lang/String;

    .line 71
    new-instance v3, Ljava/lang/String;

    const-string v4, "android"

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->platform:Ljava/lang/String;

    .line 75
    iput-object v5, p0, Lcom/adview/AdViewLayout;->umengView:Landroid/widget/RelativeLayout;

    .line 77
    iput-object v5, p0, Lcom/adview/AdViewLayout;->baiduView:Landroid/widget/RelativeLayout;

    .line 91
    const/16 v3, 0x1a

    new-array v3, v3, [Ljava/lang/String;

    const-string v4, "EOE"

    aput-object v4, v3, v8

    .line 92
    const-string v4, "GOOGLEMARKET"

    aput-object v4, v3, v6

    const/4 v4, 0x2

    .line 93
    const-string v5, "APPCHINA"

    aput-object v5, v3, v4

    const/4 v4, 0x3

    .line 94
    const-string v5, "HIAPK"

    aput-object v5, v3, v4

    const/4 v4, 0x4

    .line 95
    const-string v5, "GFAN"

    aput-object v5, v3, v4

    const/4 v4, 0x5

    .line 96
    const-string v5, "GOAPK"

    aput-object v5, v3, v4

    const/4 v4, 0x6

    .line 97
    const-string v5, "NDUOA"

    aput-object v5, v3, v4

    const/4 v4, 0x7

    .line 98
    const-string v5, "91Store"

    aput-object v5, v3, v4

    const/16 v4, 0x8

    .line 99
    const-string v5, "LIQUCN"

    aput-object v5, v3, v4

    const/16 v4, 0x9

    .line 100
    const-string v5, "WAPTW"

    aput-object v5, v3, v4

    const/16 v4, 0xa

    .line 101
    const-string v5, "ANDROIDCN"

    aput-object v5, v3, v4

    const/16 v4, 0xb

    .line 102
    const-string v5, "GGDWON"

    aput-object v5, v3, v4

    const/16 v4, 0xc

    .line 103
    const-string v5, "ANDROIDAI"

    aput-object v5, v3, v4

    const/16 v4, 0xd

    .line 104
    const-string v5, "STARANDROID"

    aput-object v5, v3, v4

    const/16 v4, 0xe

    .line 105
    const-string v5, "ANDROIDD"

    aput-object v5, v3, v4

    const/16 v4, 0xf

    .line 106
    const-string v5, "YINGYONGSO"

    aput-object v5, v3, v4

    const/16 v4, 0x10

    .line 107
    const-string v5, "IMOBILE"

    aput-object v5, v3, v4

    const/16 v4, 0x11

    .line 108
    const-string v5, "SOUAPP"

    aput-object v5, v3, v4

    const/16 v4, 0x12

    .line 109
    const-string v5, "MUMAYI"

    aput-object v5, v3, v4

    const/16 v4, 0x13

    .line 110
    const-string v5, "MOBIOMNI"

    aput-object v5, v3, v4

    const/16 v4, 0x14

    .line 111
    const-string v5, "PAOJIAO"

    aput-object v5, v3, v4

    const/16 v4, 0x15

    .line 112
    const-string v5, "AIBALA"

    aput-object v5, v3, v4

    const/16 v4, 0x16

    .line 113
    const-string v5, "COOLAPK"

    aput-object v5, v3, v4

    const/16 v4, 0x17

    .line 114
    const-string v5, "ANFONE"

    aput-object v5, v3, v4

    const/16 v4, 0x18

    .line 115
    const-string v5, "APKOK"

    aput-object v5, v3, v4

    const/16 v4, 0x19

    .line 116
    const-string v5, "OTHER"

    aput-object v5, v3, v4

    iput-object v3, p0, Lcom/adview/AdViewLayout;->mDefaultChannel:[Ljava/lang/String;

    .line 150
    invoke-direct {p0, p1}, Lcom/adview/AdViewLayout;->getAdViewSDKKey(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    .line 151
    .local v2, key:Ljava/lang/String;
    if-nez v2, :cond_0

    .line 152
    const-string v2, ""

    .line 154
    :cond_0
    move-object v0, p1

    check-cast v0, Landroid/app/Activity;

    move-object v1, v0

    .line 155
    .local v1, activity:Landroid/app/Activity;
    new-instance v3, Ljava/lang/ref/WeakReference;

    invoke-direct {v3, v1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->activityReference:Ljava/lang/ref/WeakReference;

    .line 156
    new-instance v3, Ljava/lang/ref/WeakReference;

    invoke-direct {v3, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->superViewReference:Ljava/lang/ref/WeakReference;

    .line 157
    iput-object v2, p0, Lcom/adview/AdViewLayout;->keyAdView:Ljava/lang/String;

    .line 158
    iput-boolean v6, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    .line 159
    new-instance v3, Landroid/os/Handler;

    invoke-direct {v3}, Landroid/os/Handler;-><init>()V

    iput-object v3, p0, Lcom/adview/AdViewLayout;->handler:Landroid/os/Handler;

    .line 160
    invoke-static {v6}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(I)Ljava/util/concurrent/ScheduledExecutorService;

    move-result-object v3

    iput-object v3, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    .line 161
    iput-boolean v6, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    .line 162
    iget-object v3, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v4, Lcom/adview/AdViewLayout$InitRunnable;

    iget-object v5, p0, Lcom/adview/AdViewLayout;->keyAdView:Ljava/lang/String;

    invoke-direct {v4, p0, v5}, Lcom/adview/AdViewLayout$InitRunnable;-><init>(Lcom/adview/AdViewLayout;Ljava/lang/String;)V

    const-wide/16 v5, 0x0

    sget-object v7, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v3, v4, v5, v6, v7}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 163
    invoke-virtual {p0, v8}, Lcom/adview/AdViewLayout;->setHorizontalScrollBarEnabled(Z)V

    .line 164
    invoke-virtual {p0, v8}, Lcom/adview/AdViewLayout;->setVerticalScrollBarEnabled(Z)V

    .line 165
    invoke-direct {p0, p1}, Lcom/adview/AdViewLayout;->getAppInfo(Landroid/content/Context;)V

    .line 167
    iput v8, p0, Lcom/adview/AdViewLayout;->maxWidth:I

    .line 168
    iput v8, p0, Lcom/adview/AdViewLayout;->maxHeight:I

    .line 170
    return-void
.end method

.method static synthetic access$0(Lcom/adview/AdViewLayout;)Z
    .locals 1
    .parameter

    .prologue
    .line 87
    iget-boolean v0, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    return v0
.end method

.method static synthetic access$1(Lcom/adview/AdViewLayout;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 88
    iput-boolean p1, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    return-void
.end method

.method static synthetic access$2(Lcom/adview/AdViewLayout;)V
    .locals 0
    .parameter

    .prologue
    .line 259
    invoke-direct {p0}, Lcom/adview/AdViewLayout;->rotateAd()V

    return-void
.end method

.method static synthetic access$3(Lcom/adview/AdViewLayout;)V
    .locals 0
    .parameter

    .prologue
    .line 292
    invoke-direct {p0}, Lcom/adview/AdViewLayout;->handleAd()V

    return-void
.end method

.method private countClick()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 419
    iget-object v1, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    if-eqz v1, :cond_0

    .line 421
    sget-object v1, Lcom/adview/util/AdViewUtil;->urlClick:Ljava/lang/String;

    const/4 v2, 0x7

    new-array v2, v2, [Ljava/lang/Object;

    iget-object v3, p0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    iget-object v3, v3, Lcom/adview/AdViewManager;->keyAdView:Ljava/lang/String;

    aput-object v3, v2, v5

    const/4 v3, 0x1

    iget-object v4, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    iget-object v4, v4, Lcom/adview/obj/Ration;->nid:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x2

    iget-object v4, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    iget v4, v4, Lcom/adview/obj/Ration;->type:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x3

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x4

    const-string v4, "hello"

    aput-object v4, v2, v3

    const/4 v3, 0x5

    const/16 v4, 0xaa

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x6

    iget-object v4, p0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    iget v4, v4, Lcom/adview/AdViewManager;->mSimulator:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 422
    .local v0, url:Ljava/lang/String;
    iget-object v1, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v2, Lcom/adview/AdViewLayout$PingUrlRunnable;

    invoke-direct {v2, v0}, Lcom/adview/AdViewLayout$PingUrlRunnable;-><init>(Ljava/lang/String;)V

    const-wide/16 v3, 0x0

    sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v1, v2, v3, v4, v5}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 423
    iget-object v1, p0, Lcom/adview/AdViewLayout;->adViewInterface:Lcom/adview/AdViewInterface;

    if-eqz v1, :cond_0

    .line 424
    iget-object v1, p0, Lcom/adview/AdViewLayout;->adViewInterface:Lcom/adview/AdViewInterface;

    invoke-interface {v1}, Lcom/adview/AdViewInterface;->onClickAd()V

    .line 426
    .end local v0           #url:Ljava/lang/String;
    :cond_0
    return-void
.end method

.method private countImpression()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 409
    iget-object v1, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    if-eqz v1, :cond_0

    .line 411
    sget-object v1, Lcom/adview/util/AdViewUtil;->urlImpression:Ljava/lang/String;

    const/4 v2, 0x7

    new-array v2, v2, [Ljava/lang/Object;

    iget-object v3, p0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    iget-object v3, v3, Lcom/adview/AdViewManager;->keyAdView:Ljava/lang/String;

    aput-object v3, v2, v5

    const/4 v3, 0x1

    iget-object v4, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    iget-object v4, v4, Lcom/adview/obj/Ration;->nid:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x2

    iget-object v4, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    iget v4, v4, Lcom/adview/obj/Ration;->type:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x3

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x4

    const-string v4, "hello"

    aput-object v4, v2, v3

    const/4 v3, 0x5

    const/16 v4, 0xaa

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x6

    iget-object v4, p0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    iget v4, v4, Lcom/adview/AdViewManager;->mSimulator:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 412
    .local v0, url:Ljava/lang/String;
    iget-object v1, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v2, Lcom/adview/AdViewLayout$PingUrlRunnable;

    invoke-direct {v2, v0}, Lcom/adview/AdViewLayout$PingUrlRunnable;-><init>(Ljava/lang/String;)V

    const-wide/16 v3, 0x0

    sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v1, v2, v3, v4, v5}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 413
    iget-object v1, p0, Lcom/adview/AdViewLayout;->adViewInterface:Lcom/adview/AdViewInterface;

    if-eqz v1, :cond_0

    .line 414
    iget-object v1, p0, Lcom/adview/AdViewLayout;->adViewInterface:Lcom/adview/AdViewInterface;

    invoke-interface {v1}, Lcom/adview/AdViewInterface;->onDisplayAd()V

    .line 416
    .end local v0           #url:Ljava/lang/String;
    :cond_0
    return-void
.end method

.method private getAdViewSDKKey(Landroid/content/Context;)Ljava/lang/String;
    .locals 8
    .parameter "ctx"

    .prologue
    .line 173
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v5

    .line 174
    .local v5, packageName:Ljava/lang/String;
    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    .line 175
    .local v0, activityName:Ljava/lang/String;
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v4

    .line 176
    .local v4, packageManager:Landroid/content/pm/PackageManager;
    const/4 v1, 0x0

    .line 177
    .local v1, bd:Landroid/os/Bundle;
    const-string v3, ""

    .line 180
    .local v3, key:Ljava/lang/String;
    :try_start_0
    new-instance v6, Landroid/content/ComponentName;

    invoke-direct {v6, v5, v0}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/16 v7, 0x80

    invoke-virtual {v4, v6, v7}, Landroid/content/pm/PackageManager;->getActivityInfo(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;

    move-result-object v2

    .line 181
    .local v2, info:Landroid/content/pm/ActivityInfo;
    iget-object v1, v2, Landroid/content/pm/ActivityInfo;->metaData:Landroid/os/Bundle;

    .line 182
    if-eqz v1, :cond_0

    .line 183
    const-string v6, "ADVIEW_SDK_KEY"

    invoke-virtual {v1, v6}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v3

    .line 190
    .end local v2           #info:Landroid/content/pm/ActivityInfo;
    :cond_0
    :goto_0
    const/16 v6, 0x80

    :try_start_1
    invoke-virtual {v4, v5, v6}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v2

    .line 191
    .local v2, info:Landroid/content/pm/ApplicationInfo;
    iget-object v1, v2, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    .line 192
    if-eqz v1, :cond_1

    .line 193
    const-string v6, "ADVIEW_SDK_KEY"

    invoke-virtual {v1, v6}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_1
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v3

    .line 199
    .end local v2           #info:Landroid/content/pm/ApplicationInfo;
    :cond_1
    :goto_1
    return-object v3

    .line 196
    :catch_0
    move-exception v6

    goto :goto_1

    .line 185
    :catch_1
    move-exception v6

    goto :goto_0
.end method

.method private getAppInfo(Landroid/content/Context;)V
    .locals 10
    .parameter "context"

    .prologue
    .line 492
    if-nez p1, :cond_1

    .line 573
    :cond_0
    :goto_0
    return-void

    .line 495
    :cond_1
    const-string v7, "phone"

    invoke-virtual {p1, v7}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Landroid/telephony/TelephonyManager;

    .line 496
    .local v6, tm:Landroid/telephony/TelephonyManager;
    if-eqz v6, :cond_0

    .line 499
    invoke-virtual {v6}, Landroid/telephony/TelephonyManager;->getDeviceId()Ljava/lang/String;

    move-result-object v1

    .line 500
    .local v1, devid:Ljava/lang/String;
    if-eqz v1, :cond_2

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v7

    if-lez v7, :cond_2

    .line 502
    new-instance v7, Ljava/lang/String;

    invoke-direct {v7, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->keyDev:Ljava/lang/String;

    .line 504
    :cond_2
    new-instance v7, Ljava/lang/String;

    sget-object v8, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-direct {v7, v8}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->typeDev:Ljava/lang/String;

    .line 505
    iget-object v7, p0, Lcom/adview/AdViewLayout;->typeDev:Ljava/lang/String;

    const-string v8, " "

    const-string v9, ""

    invoke-virtual {v7, v8, v9}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, p0, Lcom/adview/AdViewLayout;->typeDev:Ljava/lang/String;

    .line 506
    new-instance v7, Ljava/lang/String;

    sget-object v8, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    invoke-direct {v7, v8}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->osVer:Ljava/lang/String;

    .line 507
    iget-object v7, p0, Lcom/adview/AdViewLayout;->osVer:Ljava/lang/String;

    const-string v8, " "

    const-string v9, ""

    invoke-virtual {v7, v8, v9}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, p0, Lcom/adview/AdViewLayout;->osVer:Ljava/lang/String;

    .line 508
    new-instance v2, Landroid/util/DisplayMetrics;

    invoke-direct {v2}, Landroid/util/DisplayMetrics;-><init>()V

    .line 510
    .local v2, dm:Landroid/util/DisplayMetrics;
    if-eqz v2, :cond_0

    .line 512
    iget-object v7, p0, Lcom/adview/AdViewLayout;->activityReference:Ljava/lang/ref/WeakReference;

    invoke-virtual {v7}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Landroid/app/Activity;

    invoke-virtual {v7}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v7

    invoke-interface {v7}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v7

    invoke-virtual {v7, v2}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 518
    new-instance v7, Ljava/lang/String;

    new-instance v8, Ljava/lang/StringBuilder;

    iget v9, v2, Landroid/util/DisplayMetrics;->widthPixels:I

    invoke-static {v9}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v9, "*"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget v9, v2, Landroid/util/DisplayMetrics;->heightPixels:I

    invoke-static {v9}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->resolution:Ljava/lang/String;

    .line 522
    invoke-virtual {v6}, Landroid/telephony/TelephonyManager;->getSimState()I

    move-result v7

    const/4 v8, 0x5

    if-ne v7, v8, :cond_3

    .line 524
    invoke-virtual {v6}, Landroid/telephony/TelephonyManager;->getSimOperator()Ljava/lang/String;

    move-result-object v5

    .line 525
    .local v5, service:Ljava/lang/String;
    if-eqz v5, :cond_3

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v7

    if-lez v7, :cond_3

    .line 527
    new-instance v7, Ljava/lang/String;

    invoke-direct {v7, v5}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->servicePro:Ljava/lang/String;

    .line 534
    .end local v5           #service:Ljava/lang/String;
    :cond_3
    const-string v7, "connectivity"

    invoke-virtual {p1, v7}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    .line 535
    .local v0, cm:Landroid/net/ConnectivityManager;
    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v4

    .line 536
    .local v4, ni:Landroid/net/NetworkInfo;
    if-eqz v4, :cond_6

    .line 538
    invoke-virtual {v4}, Landroid/net/NetworkInfo;->getTypeName()Ljava/lang/String;

    move-result-object v3

    .line 539
    .local v3, networkType:Ljava/lang/String;
    const-string v7, "mobile"

    invoke-virtual {v3, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_4

    .line 541
    new-instance v7, Ljava/lang/String;

    const-string v8, "2G/3G"

    invoke-direct {v7, v8}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->netType:Ljava/lang/String;

    .line 572
    .end local v3           #networkType:Ljava/lang/String;
    :goto_1
    invoke-direct {p0, p1}, Lcom/adview/AdViewLayout;->getChannel(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, p0, Lcom/adview/AdViewLayout;->channel:Ljava/lang/String;

    goto/16 :goto_0

    .line 543
    .restart local v3       #networkType:Ljava/lang/String;
    :cond_4
    const-string v7, "wifi"

    invoke-virtual {v3, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_5

    .line 545
    new-instance v7, Ljava/lang/String;

    const-string v8, "Wi-Fi"

    invoke-direct {v7, v8}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->netType:Ljava/lang/String;

    goto :goto_1

    .line 549
    :cond_5
    new-instance v7, Ljava/lang/String;

    const-string v8, "Wi-Fi"

    invoke-direct {v7, v8}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->netType:Ljava/lang/String;

    goto :goto_1

    .line 554
    .end local v3           #networkType:Ljava/lang/String;
    :cond_6
    new-instance v7, Ljava/lang/String;

    const-string v8, "Wi-Fi"

    invoke-direct {v7, v8}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v7, p0, Lcom/adview/AdViewLayout;->netType:Ljava/lang/String;

    goto :goto_1
.end method

.method private getChannel(Landroid/content/Context;)Ljava/lang/String;
    .locals 9
    .parameter "ctx"

    .prologue
    .line 442
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v6

    .line 443
    .local v6, packageName:Ljava/lang/String;
    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    .line 444
    .local v0, activityName:Ljava/lang/String;
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v5

    .line 445
    .local v5, packageManager:Landroid/content/pm/PackageManager;
    const/4 v1, 0x0

    .line 446
    .local v1, bd:Landroid/os/Bundle;
    const-string v4, ""

    .line 449
    .local v4, key:Ljava/lang/String;
    :try_start_0
    new-instance v7, Landroid/content/ComponentName;

    invoke-direct {v7, v6, v0}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/16 v8, 0x80

    invoke-virtual {v5, v7, v8}, Landroid/content/pm/PackageManager;->getActivityInfo(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;

    move-result-object v3

    .line 450
    .local v3, info:Landroid/content/pm/ActivityInfo;
    iget-object v1, v3, Landroid/content/pm/ActivityInfo;->metaData:Landroid/os/Bundle;

    .line 451
    if-eqz v1, :cond_0

    .line 452
    const-string v7, "AdView_CHANNEL"

    invoke-virtual {v1, v7}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v4

    .line 459
    .end local v3           #info:Landroid/content/pm/ActivityInfo;
    :cond_0
    :goto_0
    const/16 v7, 0x80

    :try_start_1
    invoke-virtual {v5, v6, v7}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v3

    .line 460
    .local v3, info:Landroid/content/pm/ApplicationInfo;
    iget-object v1, v3, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    .line 461
    if-eqz v1, :cond_1

    .line 462
    const-string v7, "AdView_CHANNEL"

    invoke-virtual {v1, v7}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_1
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v4

    .line 469
    .end local v3           #info:Landroid/content/pm/ApplicationInfo;
    :cond_1
    :goto_1
    if-eqz v4, :cond_2

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v7

    if-nez v7, :cond_4

    .line 470
    :cond_2
    const-string v4, "OTHER"

    .line 487
    :cond_3
    :goto_2
    return-object v4

    .line 473
    :cond_4
    const/4 v2, 0x0

    .line 474
    .local v2, i:I
    const/4 v2, 0x0

    :goto_3
    iget-object v7, p0, Lcom/adview/AdViewLayout;->mDefaultChannel:[Ljava/lang/String;

    array-length v7, v7

    if-lt v2, v7, :cond_6

    .line 481
    :cond_5
    iget-object v7, p0, Lcom/adview/AdViewLayout;->mDefaultChannel:[Ljava/lang/String;

    array-length v7, v7

    if-ne v2, v7, :cond_3

    .line 483
    const-string v4, "OTHER"

    goto :goto_2

    .line 476
    :cond_6
    iget-object v7, p0, Lcom/adview/AdViewLayout;->mDefaultChannel:[Ljava/lang/String;

    aget-object v7, v7, v2

    invoke-virtual {v4, v7}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v7

    if-eqz v7, :cond_5

    .line 474
    add-int/lit8 v2, v2, 0x1

    goto :goto_3

    .line 465
    .end local v2           #i:I
    :catch_0
    move-exception v7

    goto :goto_1

    .line 454
    :catch_1
    move-exception v7

    goto :goto_0
.end method

.method private handleAd()V
    .locals 7

    .prologue
    .line 294
    iget-object v2, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    if-nez v2, :cond_1

    .line 295
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v2

    sget-object v3, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v2, v3, :cond_0

    .line 296
    const-string v2, "AdView SDK v1.7.0"

    const-string v3, "nextRation is null!"

    invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 297
    :cond_0
    invoke-virtual {p0}, Lcom/adview/AdViewLayout;->rotateThreadedDelayed()V

    .line 321
    :goto_0
    return-void

    .line 301
    :cond_1
    invoke-virtual {p0}, Lcom/adview/AdViewLayout;->isConnectInternet()Z

    move-result v2

    if-nez v2, :cond_2

    .line 304
    iget-object v2, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v3, Lcom/adview/AdViewLayout$RotatePriAdRunnable;

    invoke-direct {v3, p0}, Lcom/adview/AdViewLayout$RotatePriAdRunnable;-><init>(Lcom/adview/AdViewLayout;)V

    const-wide/16 v4, 0x5

    sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v2, v3, v4, v5, v6}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    goto :goto_0

    .line 308
    :cond_2
    const-string v2, "Showing ad:\nname: %s"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    iget-object v5, v5, Lcom/adview/obj/Ration;->name:Ljava/lang/String;

    aput-object v5, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 309
    .local v0, rationInfo:Ljava/lang/String;
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v2

    sget-object v3, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v2, v3, :cond_3

    .line 310
    const-string v2, "AdView SDK v1.7.0"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 313
    :cond_3
    :try_start_0
    iget-object v2, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    invoke-static {p0, v2}, Lcom/adview/adapters/AdViewAdapter;->handle(Lcom/adview/AdViewLayout;Lcom/adview/obj/Ration;)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 315
    :catch_0
    move-exception v2

    move-object v1, v2

    .line 316
    .local v1, t:Ljava/lang/Throwable;
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v2

    sget-object v3, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v2, v3, :cond_4

    .line 317
    const-string v2, "AdView SDK v1.7.0"

    const-string v3, "Caught an exception in adapter:"

    invoke-static {v2, v3, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 318
    :cond_4
    invoke-virtual {p0}, Lcom/adview/AdViewLayout;->rollover()V

    goto :goto_0
.end method

.method private rotateAd()V
    .locals 2

    .prologue
    .line 260
    iget-boolean v0, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    if-nez v0, :cond_0

    .line 261
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    .line 269
    :goto_0
    return-void

    .line 264
    :cond_0
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v0

    sget-object v1, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v0, v1, :cond_1

    .line 265
    const-string v0, "AdView SDK v1.7.0"

    const-string v1, "Rotating Ad"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 266
    :cond_1
    iget-object v0, p0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    invoke-virtual {v0}, Lcom/adview/AdViewManager;->getRation()Lcom/adview/obj/Ration;

    move-result-object v0

    iput-object v0, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    .line 268
    iget-object v0, p0, Lcom/adview/AdViewLayout;->handler:Landroid/os/Handler;

    new-instance v1, Lcom/adview/AdViewLayout$HandleAdRunnable;

    invoke-direct {v1, p0}, Lcom/adview/AdViewLayout$HandleAdRunnable;-><init>(Lcom/adview/AdViewLayout;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0
.end method


# virtual methods
.method public AddSubView(Landroid/widget/RelativeLayout;)V
    .locals 4
    .parameter "subView"

    .prologue
    .line 381
    iget-object v2, p0, Lcom/adview/AdViewLayout;->superViewReference:Ljava/lang/ref/WeakReference;

    invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    .line 382
    .local v1, superView:Landroid/widget/RelativeLayout;
    if-nez v1, :cond_0

    .line 394
    :goto_0
    return-void

    .line 385
    :cond_0
    invoke-virtual {v1}, Landroid/widget/RelativeLayout;->removeAllViews()V

    .line 387
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 388
    .local v0, layoutParams:Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v2, 0xd

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 389
    invoke-virtual {v1, p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 390
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v2

    sget-object v3, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v2, v3, :cond_1

    .line 391
    const-string v2, "AdView SDK v1.7.0"

    const-string v3, "AddSubView"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 392
    :cond_1
    iget-object v2, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    iput-object v2, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    goto :goto_0
.end method

.method public appReport()V
    .locals 6

    .prologue
    .line 430
    sget-object v1, Lcom/adview/util/AdViewUtil;->appReport:Ljava/lang/String;

    const/16 v2, 0x9

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/adview/AdViewLayout;->keyAdView:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x1

    iget-object v4, p0, Lcom/adview/AdViewLayout;->keyDev:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x2

    iget-object v4, p0, Lcom/adview/AdViewLayout;->typeDev:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x3

    iget-object v4, p0, Lcom/adview/AdViewLayout;->osVer:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x4

    iget-object v4, p0, Lcom/adview/AdViewLayout;->resolution:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x5

    iget-object v4, p0, Lcom/adview/AdViewLayout;->servicePro:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x6

    iget-object v4, p0, Lcom/adview/AdViewLayout;->netType:Ljava/lang/String;

    aput-object v4, v2, v3

    const/4 v3, 0x7

    iget-object v4, p0, Lcom/adview/AdViewLayout;->channel:Ljava/lang/String;

    aput-object v4, v2, v3

    const/16 v3, 0x8

    iget-object v4, p0, Lcom/adview/AdViewLayout;->platform:Ljava/lang/String;

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 431
    .local v0, url:Ljava/lang/String;
    iget-object v1, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v2, Lcom/adview/AdViewLayout$PingUrlRunnable;

    invoke-direct {v2, v0}, Lcom/adview/AdViewLayout$PingUrlRunnable;-><init>(Ljava/lang/String;)V

    const-wide/16 v3, 0x0

    sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v1, v2, v3, v4, v5}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 434
    return-void
.end method

.method public fetchConfigThreadedDelayed(I)V
    .locals 5
    .parameter "seconds"

    .prologue
    .line 340
    invoke-static {}, Lcom/adview/AdViewTargeting;->getUpdateMode()Lcom/adview/AdViewTargeting$UpdateMode;

    move-result-object v0

    sget-object v1, Lcom/adview/AdViewTargeting$UpdateMode;->DEFAULT:Lcom/adview/AdViewTargeting$UpdateMode;

    if-ne v0, v1, :cond_0

    .line 341
    iget-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lcom/adview/AdViewLayout$GetConfigRunnable;

    invoke-direct {v1, p0}, Lcom/adview/AdViewLayout$GetConfigRunnable;-><init>(Lcom/adview/AdViewLayout;)V

    int-to-long v2, p1

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 343
    :cond_0
    return-void
.end method

.method public isConnectInternet()Z
    .locals 4

    .prologue
    .line 282
    invoke-virtual {p0}, Lcom/adview/AdViewLayout;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "connectivity"

    invoke-virtual {v2, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    .line 283
    .local v0, cm:Landroid/net/ConnectivityManager;
    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v1

    .line 285
    .local v1, ni:Landroid/net/NetworkInfo;
    if-eqz v1, :cond_0

    .line 286
    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isAvailable()Z

    move-result v2

    .line 288
    :goto_0
    return v2

    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public kyAdviewReport(Ljava/lang/String;Ljava/lang/String;)V
    .locals 5
    .parameter "url"
    .parameter "content"

    .prologue
    .line 438
    iget-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lcom/adview/AdViewLayout$PingKyAdviewRunnable;

    invoke-direct {v1, p1, p2}, Lcom/adview/AdViewLayout$PingKyAdviewRunnable;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const-wide/16 v2, 0x1

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 439
    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 2
    .parameter "event"

    .prologue
    .line 576
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 589
    :cond_0
    :goto_0
    const/4 v0, 0x0

    return v0

    .line 578
    :pswitch_0
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v0

    sget-object v1, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v0, v1, :cond_1

    .line 579
    const-string v0, "AdView SDK v1.7.0"

    const-string v1, "Intercepted ACTION_DOWN event"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 580
    :cond_1
    iget-object v0, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    if-eqz v0, :cond_0

    .line 581
    invoke-direct {p0}, Lcom/adview/AdViewLayout;->countClick()V

    goto :goto_0

    .line 576
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method

.method protected onMeasure(II)V
    .locals 4
    .parameter "widthMeasureSpec"
    .parameter "heightMeasureSpec"

    .prologue
    const/high16 v3, -0x8000

    .line 203
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v1

    .line 204
    .local v1, widthSize:I
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v0

    .line 206
    .local v0, heightSize:I
    iget v2, p0, Lcom/adview/AdViewLayout;->maxWidth:I

    if-lez v2, :cond_0

    iget v2, p0, Lcom/adview/AdViewLayout;->maxWidth:I

    if-le v1, v2, :cond_0

    .line 207
    iget v2, p0, Lcom/adview/AdViewLayout;->maxWidth:I

    invoke-static {v2, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result p1

    .line 210
    :cond_0
    iget v2, p0, Lcom/adview/AdViewLayout;->maxHeight:I

    if-lez v2, :cond_1

    iget v2, p0, Lcom/adview/AdViewLayout;->maxHeight:I

    if-le v0, v2, :cond_1

    .line 211
    iget v2, p0, Lcom/adview/AdViewLayout;->maxHeight:I

    invoke-static {v2, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result p2

    .line 214
    :cond_1
    invoke-super {p0, p1, p2}, Landroid/widget/RelativeLayout;->onMeasure(II)V

    .line 215
    return-void
.end method

.method protected onWindowVisibilityChanged(I)V
    .locals 5
    .parameter "visibility"

    .prologue
    const/4 v1, 0x1

    .line 219
    if-nez p1, :cond_2

    .line 220
    iput-boolean v1, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    .line 221
    iget-boolean v0, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    if-nez v0, :cond_0

    .line 222
    iput-boolean v1, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    .line 224
    iget-object v0, p0, Lcom/adview/AdViewLayout;->extra:Lcom/adview/obj/Extra;

    if-eqz v0, :cond_1

    .line 225
    invoke-virtual {p0}, Lcom/adview/AdViewLayout;->rotateThreadedNow()V

    .line 235
    :cond_0
    :goto_0
    return-void

    .line 228
    :cond_1
    iget-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lcom/adview/AdViewLayout$InitRunnable;

    iget-object v2, p0, Lcom/adview/AdViewLayout;->keyAdView:Ljava/lang/String;

    invoke-direct {v1, p0, v2}, Lcom/adview/AdViewLayout$InitRunnable;-><init>(Lcom/adview/AdViewLayout;Ljava/lang/String;)V

    const-wide/16 v2, 0x0

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    goto :goto_0

    .line 233
    :cond_2
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    goto :goto_0
.end method

.method public pushSubView(Landroid/view/ViewGroup;)V
    .locals 5
    .parameter "subView"

    .prologue
    const/4 v4, -0x2

    .line 347
    iget-object v2, p0, Lcom/adview/AdViewLayout;->superViewReference:Ljava/lang/ref/WeakReference;

    invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    .line 348
    .local v1, superView:Landroid/widget/RelativeLayout;
    if-nez v1, :cond_0

    .line 363
    :goto_0
    return-void

    .line 351
    :cond_0
    invoke-virtual {v1}, Landroid/widget/RelativeLayout;->removeAllViews()V

    .line 353
    iget-object v2, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    iget v2, v2, Lcom/adview/obj/Ration;->type:I

    const/16 v3, 0x21

    if-eq v2, v3, :cond_1

    iget-object v2, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    iget v2, v2, Lcom/adview/obj/Ration;->type:I

    const/16 v3, 0x2e

    if-ne v2, v3, :cond_3

    .line 354
    :cond_1
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 357
    .local v0, layoutParams:Landroid/widget/RelativeLayout$LayoutParams;
    :goto_1
    const/16 v2, 0xd

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 358
    invoke-virtual {v1, p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 359
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v2

    sget-object v3, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v2, v3, :cond_2

    .line 360
    const-string v2, "AdView SDK v1.7.0"

    const-string v3, "Added subview"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 361
    :cond_2
    iget-object v2, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    iput-object v2, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    .line 362
    invoke-direct {p0}, Lcom/adview/AdViewLayout;->countImpression()V

    goto :goto_0

    .line 356
    .end local v0           #layoutParams:Landroid/widget/RelativeLayout$LayoutParams;
    :cond_3
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v0, v2, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .restart local v0       #layoutParams:Landroid/widget/RelativeLayout$LayoutParams;
    goto :goto_1
.end method

.method public pushSubViewForIzp(Landroid/view/ViewGroup;)V
    .locals 4
    .parameter "subView"

    .prologue
    .line 366
    iget-object v2, p0, Lcom/adview/AdViewLayout;->superViewReference:Ljava/lang/ref/WeakReference;

    invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    .line 367
    .local v1, superView:Landroid/widget/RelativeLayout;
    if-nez v1, :cond_0

    .line 378
    :goto_0
    return-void

    .line 370
    :cond_0
    invoke-virtual {v1}, Landroid/widget/RelativeLayout;->removeAllViews()V

    .line 371
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/16 v2, 0x140

    const/16 v3, 0x30

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 372
    .local v0, layoutParams:Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v2, 0xd

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 373
    invoke-virtual {v1, p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 374
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v2

    sget-object v3, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v2, v3, :cond_1

    .line 375
    const-string v2, "AdView SDK v1.7.0"

    const-string v3, "Added subview"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 376
    :cond_1
    iget-object v2, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    iput-object v2, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    .line 377
    invoke-direct {p0}, Lcom/adview/AdViewLayout;->countImpression()V

    goto :goto_0
.end method

.method public reportImpression()V
    .locals 1

    .prologue
    .line 399
    iget-object v0, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    iput-object v0, p0, Lcom/adview/AdViewLayout;->activeRation:Lcom/adview/obj/Ration;

    .line 400
    invoke-direct {p0}, Lcom/adview/AdViewLayout;->countImpression()V

    .line 401
    return-void
.end method

.method public rollover()V
    .locals 2

    .prologue
    .line 404
    iget-object v0, p0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    invoke-virtual {v0}, Lcom/adview/AdViewManager;->getRollover()Lcom/adview/obj/Ration;

    move-result-object v0

    iput-object v0, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    .line 405
    iget-object v0, p0, Lcom/adview/AdViewLayout;->handler:Landroid/os/Handler;

    new-instance v1, Lcom/adview/AdViewLayout$HandleAdRunnable;

    invoke-direct {v1, p0}, Lcom/adview/AdViewLayout$HandleAdRunnable;-><init>(Lcom/adview/AdViewLayout;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 406
    return-void
.end method

.method public rotatePriAd()V
    .locals 2

    .prologue
    .line 271
    iget-boolean v0, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    if-nez v0, :cond_0

    .line 272
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    .line 279
    :goto_0
    return-void

    .line 275
    :cond_0
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v0

    sget-object v1, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v0, v1, :cond_1

    .line 276
    const-string v0, "AdView SDK v1.7.0"

    const-string v1, "Rotating Pri Ad"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 277
    :cond_1
    iget-object v0, p0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    invoke-virtual {v0}, Lcom/adview/AdViewManager;->getRollover()Lcom/adview/obj/Ration;

    move-result-object v0

    iput-object v0, p0, Lcom/adview/AdViewLayout;->nextRation:Lcom/adview/obj/Ration;

    .line 278
    iget-object v0, p0, Lcom/adview/AdViewLayout;->handler:Landroid/os/Handler;

    new-instance v1, Lcom/adview/AdViewLayout$HandleAdRunnable;

    invoke-direct {v1, p0}, Lcom/adview/AdViewLayout$HandleAdRunnable;-><init>(Lcom/adview/AdViewLayout;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0
.end method

.method public rotateThreadedDelayed()V
    .locals 5

    .prologue
    .line 333
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v0

    sget-object v1, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v0, v1, :cond_0

    .line 334
    const-string v0, "AdView SDK v1.7.0"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Will call rotateAd() in "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/adview/AdViewLayout;->extra:Lcom/adview/obj/Extra;

    iget v2, v2, Lcom/adview/obj/Extra;->cycleTime:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " seconds"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 335
    :cond_0
    iget-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lcom/adview/AdViewLayout$RotateAdRunnable;

    invoke-direct {v1, p0}, Lcom/adview/AdViewLayout$RotateAdRunnable;-><init>(Lcom/adview/AdViewLayout;)V

    iget-object v2, p0, Lcom/adview/AdViewLayout;->extra:Lcom/adview/obj/Extra;

    iget v2, v2, Lcom/adview/obj/Extra;->cycleTime:I

    int-to-long v2, v2

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 336
    return-void
.end method

.method public rotateThreadedNow()V
    .locals 5

    .prologue
    .line 325
    iget-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lcom/adview/AdViewLayout$RotateAdRunnable;

    invoke-direct {v1, p0}, Lcom/adview/AdViewLayout$RotateAdRunnable;-><init>(Lcom/adview/AdViewLayout;)V

    const-wide/16 v2, 0x0

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 326
    return-void
.end method

.method public rotateThreadedPri()V
    .locals 5

    .prologue
    .line 328
    iget-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lcom/adview/AdViewLayout$RotatePriAdRunnable;

    invoke-direct {v1, p0}, Lcom/adview/AdViewLayout$RotatePriAdRunnable;-><init>(Lcom/adview/AdViewLayout;)V

    const-wide/16 v2, 0x1

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    .line 329
    return-void
.end method

.method public setAdViewInterface(Lcom/adview/AdViewInterface;)V
    .locals 0
    .parameter "adViewInterface"

    .prologue
    .line 595
    iput-object p1, p0, Lcom/adview/AdViewLayout;->adViewInterface:Lcom/adview/AdViewInterface;

    .line 596
    return-void
.end method

.method public setMaxHeight(I)V
    .locals 0
    .parameter "height"

    .prologue
    .line 123
    iput p1, p0, Lcom/adview/AdViewLayout;->maxHeight:I

    return-void
.end method

.method public setMaxWidth(I)V
    .locals 0
    .parameter "width"

    .prologue
    .line 120
    iput p1, p0, Lcom/adview/AdViewLayout;->maxWidth:I

    return-void
.end method

.method public setVisibility(I)V
    .locals 5
    .parameter "visibility"

    .prologue
    const/4 v1, 0x1

    .line 240
    if-nez p1, :cond_2

    .line 241
    iput-boolean v1, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    .line 242
    iget-boolean v0, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    if-nez v0, :cond_0

    .line 243
    iput-boolean v1, p0, Lcom/adview/AdViewLayout;->isScheduled:Z

    .line 245
    iget-object v0, p0, Lcom/adview/AdViewLayout;->extra:Lcom/adview/obj/Extra;

    if-eqz v0, :cond_1

    .line 246
    invoke-virtual {p0}, Lcom/adview/AdViewLayout;->rotateThreadedNow()V

    .line 256
    :cond_0
    :goto_0
    invoke-super {p0, p1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 257
    return-void

    .line 249
    :cond_1
    iget-object v0, p0, Lcom/adview/AdViewLayout;->scheduler:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lcom/adview/AdViewLayout$InitRunnable;

    iget-object v2, p0, Lcom/adview/AdViewLayout;->keyAdView:Ljava/lang/String;

    invoke-direct {v1, p0, v2}, Lcom/adview/AdViewLayout$InitRunnable;-><init>(Lcom/adview/AdViewLayout;Ljava/lang/String;)V

    const-wide/16 v2, 0x0

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, v2, v3, v4}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    goto :goto_0

    .line 254
    :cond_2
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/adview/AdViewLayout;->hasWindow:Z

    goto :goto_0
.end method
